package com.p595263720.o_amap.nav.model;

import com.amap.api.navi.model.AMapNaviPath;
import com.amap.api.navi.model.NaviLatLng;

import java.util.List;

public class CalculateResult {
    public int allLength; //路线长度 米
    public int allTime;  //所需要时间 秒
    public List<NaviLatLng> coordList; //经纬度集合
    public String labels; //获取当前路线的策略标签,如:距离最短
    public String pathId; //获取路线id
    public int cost;
    public NaviLatLng startPoint;
    public NaviLatLng endPoint;


    public CalculateResult(AMapNaviPath aMapNaviPath) {
        this.allLength = aMapNaviPath.getAllLength();
        this.allTime = aMapNaviPath.getAllTime();
        this.coordList = aMapNaviPath.getCoordList();
        this.labels = aMapNaviPath.getLabels();
        this.pathId = aMapNaviPath.getPathid() + "";
        this.cost = aMapNaviPath.getTollCost();
        this.startPoint = aMapNaviPath.getStartPoint();
        this.endPoint = aMapNaviPath.getEndPoint();
    }
}
